package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 提现渠道
 *
 * @author 李一涵
 * @since 2023-02-09
 */
public enum WithdrawChannel {
	/**
	 * 待付款
	 */
	PC(1, "网站提现"),
	APP(2, "APP提现"),
	AUTO(3, "自动提现");

	WithdrawChannel(int code, String description) {
		this.code = code;
		this.description = description;
	}

	@EnumValue
	private final int code;

	@JsonValue
	private final String description;

	public int getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}
}
